package com.yyk.yykywd.mvvm.ui

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.yyk.yykywd.R
import com.yyk.yykywd.TYPE
import com.yyk.yykywd.USER_AGREEMENT
import com.yyk.yykywd.base.BaseActivity
import kotlinx.android.synthetic.main.activity_user_agreement.*

class UserAgreementActivity : BaseActivity() {
    override fun initData() {
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_user_agreement
    }

    override fun initView() {
        setBackArrow()

        val type = intent.getStringExtra(TYPE)
        when (type) {
            USER_AGREEMENT -> {
                setTitle("云医康用户服务协议")
                tv.text = getString(R.string.user_agreement)
            }
            else -> {
                setTitle("用户隐私政策")
                tv.text = getString(R.string.privacy_policy)
            }
        }
    }

}
